Didn't think I'd be able to pull of a 3-instruction solve (having never done min instructions before) until I got the idea of using the second stick as input. 
Totally unoptimised still but good first attempt.